Pelago\Emogrifier\CssInliner C

Total Complexity 114
Dependencies 10
Dependents 1
Total lines 1,183
Lines of code 478
Logical lines of code 256
Comment lines 407
Methods 43
Properties 11

Methods 43

Method Rating Maintainability Complexity Lines of code
inlineCss()
A
47 8 36
collateCssRules()
A
48 7 34
generateStyleStringFromDeclarationsArrays()
S
50 7 28
getNodesToExclude()
S
54 6 21
getCssFromAllStyleNodes()
S
57 5 17
hasUnsupportedPseudoClass()
S
59 5 14
parseCssDeclarationsBlock()
S
57 4 17
getCssSelectorPrecedence()
S
56 4 17
copyUninlinableCssToStyleNode()
S
60 4 13
existsMatchForCssSelector()
S
62 4 11
removeUnmatchablePseudoComponents()
S
50 2 32
removeImportantAnnotationFromNodeInlineStyle()
S
57 3 17
copyInlinableCssToStyleAttribute()
S
59 3 16
sortBySelectorPrecedence()
S
66 4 7
normalizeStyleAttributes()
S
58 3 15
logOrThrowPregLastError()
S
56 2 17
normalizeStyleAttributesOfAllNodes()
S
68 3 8
replaceUnmatchableNotComponent()
S
67 3 7
fillStyleAttributesWithMergedStyles()
S
61 2 13
getAllNodesWithStyleAttribute()
S
66 2 8
pregReplace()
S
67 2 8
getHeadElement()
S
67 2 7
removeUnsupportedOfTypePseudoClasses()
S
66 2 9
removeAllowedMediaType()
S
71 2 6
existsMatchForSelectorInCssRule()
S
69 2 7
removeImportantAnnotationFromAllInlineStyles()
S
74 2 5
selectorPartHasUnsupportedOfTypePseudoClass()
S
69 2 6
getMatchingUninlinableCssRules()
S
70 2 6
removeExcludedSelector()
S
71 2 6
getCssSelectorConverter()
S
71 2 6
attributeValueIsImportant()
S
78 1 3
setDebug()
S
77 1 4
generateStyleStringFromSingleDeclarationsArray()
S
79 1 3
determineMatchingUninlinableCssRules()
S
68 1 8
getMatchingUninlinableSelectors()
S
79 1 3
addAllowedMediaType()
S
76 1 4
disableInlineStyleAttributesParsing()
S
77 1 4
removeSelectorComponents()
S
68 1 7
clearAllCaches()
S
70 1 7
disableStyleBlocksParsing()
S
77 1 4
addStyleElementToDocument()
S
65 1 9
purgeVisitedNodes()
S
77 1 4
addExcludedSelector()
S
76 1 4